package com.example.controller;
import com.example.pojo.Result;
import com.example.service.CountService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class CountController {
    @Autowired
    private CountService countService;

    @GetMapping("/order/count")
    public Result count(){
       int money= countService.count();
        return Result.success(money);
    }
}
